package com.zj.open.wechat.dto.msg;

public enum Messages {

    text(TextMessage.class), //
    image(ImageMessage.class), //
    voice(VoiceMessage.class), //
    video(VideoMessage.class), //
    shortvideo(VideoMessage.class), //
    location(LocationMessage.class), //
    link(LinkMessage.class);

    Class messageClass = null;

    <T extends Message> Messages(Class<T> messageClass) {
        this.messageClass = messageClass;
    }

    public <T extends Message> Class<T> getMessageClass() {
        return messageClass;
    }
}
